package com.example.job;

import lombok.Data;

import java.io.Serializable;

/***
 * 定义任务信息
 */
@Data
public class JobInfo implements Serializable {

    private String jobId;

    //执行类
    private String jobClass;

    //可重复执行
    private boolean repeated;

    //间隔时间
    private long interval;

    //启用
    private boolean enabled = true;

    public JobInfo(String jobId, String jobClass, boolean repeated, long interval) {
        this.jobId = jobId;
        this.jobClass = jobClass;
        this.repeated = repeated;
        this.interval = interval;
    }
}
